[gd_scene load_steps=7 format=2]

[ext_resource path="res://Ammo/Bullet.tscn" type="PackedScene" id=1]
[ext_resource path="res://Assets/Bullet/red_laser.png" type="Texture" id=2]
[ext_resource path="res://Ammo/Laser.gd" type="Script" id=3]

[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 8, 8 )

[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ SubResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]

[sub_resource type="Gradient" id=3]
colors = PoolColorArray( 1, 0.498039, 0.498039, 1, 0, 0, 0, 1 )

[node name="RedLaser" instance=ExtResource( 1 )]
script = ExtResource( 3 )
penetration = 3
length = 200
laser_time = 1

[node name="AnimatedSprite" parent="." index="0"]
visible = false
rotation = 0.0
frames = SubResource( 2 )

[node name="Timer" type="Timer" parent="." index="1"]
one_shot = true

[node name="Line2D" type="Line2D" parent="." index="2"]
width = 1.0
gradient = SubResource( 3 )

[node name="RayCast2D" type="RayCast2D" parent="." index="3"]

[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
